﻿using ProTrack.Entity;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;

namespace ProTrack.IServices.Plans
{
    public interface ITeamTypeServices
    {
        //新增
        public Task<bool> AddAsync(TeamType model);
        //查询所有
        public Task<IEnumerable<TeamType>> GetAllAsync();
        //分页获取
        public Task<IEnumerable<TeamType>> GetAsync(int PageIndex,int PageSize,string TypeCode,string TypeName ,string Creator);
        public Task<int> GetCountAsync(string TypeCode,string TypeName,string Creator);
        //修改
        public Task<bool> UpdateAsync(TeamType model);
        //删除
        public Task<bool> DeleteAsync(int Id);
        //批量删除
        public Task<bool> DeleteAsync(int[] Ids);
    }
}
